    //工具栏
var toolbar = {
    querySceneSet: function () {
        var datas = "sceneGuid=" + dataGuid;
        var url = basePath + "/queryToolBarSet.action";
        $.ajax(
        {
            url: url,
            type: "post",
            data: datas,
            async: false,
            dataType: "Json",
            success: function (result) {
                if (result.resultCode == "1") {
                    toolbar.initSceneTabSet(result.toolbarset);
                } else {
                    console.log(result.resultMsg);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                $('body').dailog({ type: 'danger', bottons: ['确定'], discription: "工具栏信息获取失败！" });
            }
        });
    },
    initSceneTabSet: function (Info) {
        var ToolbarSet = Info;
        /* toobar  1 全屏  2定位  3测量 4光照分析  5可视域分析 6方量分析  7.设置 8信息 9分享 10 代码引用   */
        /*  2保留  1或其他   隐藏  */
        if (ToolbarSet.toolbar1 != 2) { $("#fullpage").remove(); }
        if (ToolbarSet.toolbar2 != 2) { $("#back-position").remove(); }
        if (ToolbarSet.toolbar3 != 2) { $("#measure").remove(); }
        if (ToolbarSet.toolbar7 != 2) { $("#fly").remove(); }
        if (ToolbarSet.toolbar8 != 2) { $("#SplitScreen").remove(); }
        if (ToolbarSet.toolbar9 != 2) { $("#setting").remove(); }
        if (ToolbarSet.toolbar10 != 2) { $("#bar-info").remove(); }
        if (ToolbarSet.toolbar11 != 2) { $("#shareHtml").remove(); }
        if (ToolbarSet.toolbar12 != 2) { $("#code").remove(); }
        if (ToolbarSet.toolbar4 != 2 && ToolbarSet.toolbar5 != 2 && ToolbarSet.toolbar6 != 2) { $("#analysisType").remove(); }
        if (ToolbarSet.toolbar4 != 2) { $("#SunAnalysis").remove(); }
        if (ToolbarSet.toolbar5 != 2) { $("#ViewAnalysis").remove(); }
        if (ToolbarSet.toolbar6 != 2) { $("#VolumeAnalysis").remove(); }
        var aToolBar = $("#switch-box").find(".bar-item");
        if (aToolBar.length <= 0) {
            $("#switch-box").remove();
        }
    }
}